Back - Trigger

Software Projects - Home Server Setup

Lacrimae rerum. Memento mori. Memento vivere.

Syncthing File Synchronization

...

Installation And Setup

Add the official repository for the stable channel and release PGP keys: sudo mkdir -p /etc/apt/keyrings sudo curl -L -o /etc/apt/keyrings/syncthing-archive-keyring.gpg https://syncthing.net/release-key.gpg echo "deb [signed-by=/etc/apt/keyrings/syncthing-archive-keyring.gpg] https://apt.syncthing.net/ syncthing stable" | sudo tee /etc/apt/sources.list.d/syncthing.list Install the packages for Syncthing from the available repository: sudo apt install syncthing syncthing-gtk

For configuring Syncthing, this can be done through the command line, web user interface, or native application. The web user interface is most commonly used, starts automatically, and remains available on http://localhost:8080/ (or whichever port is available) - it should be noted that cookies are essential for correct functioning.

...

For the synchronization of files with another device, Syncthing must be notified about that device. This is accomplished by exchanging device identifiers (unique and cryptographically-secure identifier which is generated as part of the key generation when Synthing is started for the first time). An arbitrary example of a device identifier: SDFIFSC-IEFCUWV-RTWOVFA-GHNT5CQ-EFCASFT-QLCPVBW-IERDSVG-KDFWFCS. Once each device is configured with the device identifier of the other device, it is possible for the devices to connect and transfer data between each other - since the configuration must be mutual for a connection to happen, the device identifiers do not necessarily need to be kept secret (essentially part of a public key).

To get your two devices to talk to each other click “Add Remote Device” at the bottom right on both devices, and enter the device ID of the other side. You should also select the folder(s) that you want to share. The device name is optional and purely cosmetic. You can change it later if desired.